package com.example.shirodemo.mapper;

import com.example.shirodemo.entity.SPermission;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @author 绫小路
 * @date 2021/1/15 22:30
 * @description
 */
public interface SPermissionMapper {

  int deleteByPrimaryKey(Integer id);

  int insertSelective(SPermission record);

  SPermission selectByPrimaryKey(Integer id);

  int updateByPrimaryKeySelective(SPermission record);

  List<String> getPermissionRole(@Param("url") String url, @Param("method") String method);

  int hasUrl(@Param("url") String url, @Param("method") String method);

  List<SPermission> getAllPermission(@Param("search") String search);
}
